package com.wiloon.java8x.javabasic;

/**
 * Created by wiloon on 1/22/15.
 */
class A {
    A() {
        System.out.println("A.A called");
    }
}
class B extends A {
    int i = f();
    int j;
    {
        j = 37;
        System.out.println("initialization block executed");
    }
    B() {
        System.out.println("B.B called");
    }
    int f() {
        System.out.println("B.f called");
        return 47;
    }
}
public class CtorDemo2 {
    public static void main(String args[]) {
        B bobj = new B();
        bobj.hashCode();
    }
}